package com.zhufeng.jvm.classloader;

public class MyTest2 {

	public static void main(String[] args) {
		System.out.println(MyParent2.str);
		System.out.println("====================================");
//		System.out.println(MyChild.str2);
	}

}

class MyParent2 {
	public final static String str = "hello world";
	
	static {
		System.out.println("MyParent static block");
	}
}

class MyChild2 extends MyParent {
	
	public static String str2 = "MyChild hello world";
	static {
		System.out.println("MyChild static block");
	}
}
